<div style="float:right;"><?= $this->href( "role", "resourceList", "Editar recursos", array( 'roleId'=>$this->role->role_id ) ) ?></div>
<p>El siguiente listado muestra los permisos del role <strong><?= $this->role->name ?></strong>.</p>


<? if (count($this->paginator)): ?>
<table class="listclass" width="100%" border="0" cellpadding="0" cellspacing="0">
    <thead>
      <tr>
            <th width="10%" align="left">ID</th>
            <th width="10%" align="left">Priority</th>
            <th width="10%" align="left">Resource</th>
            <th width="10%" align="left">Operation</th>
            <th width="10%" align="left">Permission</th>
            <th colspan= 2 width="20%" align="left">Accion</th>
      </tr>
    </thead>

    <tbody>
        <? $i=0; foreach ($this->paginator as $acl) : ?>
              <tr class=<?= ($i%2==0?'"even clickable"':'"odd clickable"') ?>
                onclick="document.location='<?php echo $this->url( array( 'controller'=>'role','action'=>'aclEdit', 'roleId'=> $this->role->role_id, 'aclId' => $acl->acl_id ), "default" )?>'">
					<td valign="top"><?= $acl->acl_id; ?></td>
                    <td valign="top"><?= $acl->priority ?></td>
                    <td valign="top"><?= $acl->findExt_Model_Resource()->current()->name ?></td>
                    <td valign="top"><?= $acl->operation ?></td>
                    <td valign="top"><?= $acl->permission ?></td>
                    <td valign="top">
                        <?= $this->href( "role", "aclDelete", "Borrar Permiso", array( "roleId" => $this->role->role_id, "aclId" => $acl->acl_id ) ) ?>
                    </td>
              </tr>
        <? $i++; endforeach; ?>
    </tbody>
</table>
<?= $this->paginator ?>
<? endif; ?>
<p>
<?= $this->href( "role", "aclEdit", "Crear un nuevo permiso", array( 'roleId' => $this->role->role_id ) ) ?>
</p>
<p>
<?= $this->href( "role", "list", "Volver" ) ?>
</p>

